﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///NewsTextModel 的摘要说明
/// </summary>
public class NewsTextModel
{
    public NewsTextModel()
    {
        //
        //TODO: 在此处添加构造函数逻辑
        //
    }

    #region Model
    private string _textid;
    private string _author;
    private string _publishorg;
    private string _initialmedia;
    private DateTime _publdate;
    private string _title;
    private string _keywords;
    private string _textcontent;
    private string _textabstract;
    private decimal _textsize;
    private string _textcomment;
    private string _industrycode;
    private string _industryname;
    private string _person;
    private string _recommendid;
    private string _memo;
    private DateTime _rectime;
    private DateTime _modtime;
    private string _isvalid;
    private string _recordid;
    /// <summary>
    /// 正文ID
    /// </summary>
    public string TextID
    {
        set { _textid = value; }
        get { return _textid; }
    }
    /// <summary>
    /// 文章作者
    /// </summary>
    public string Author
    {
        set { _author = value; }
        get { return _author; }
    }
    /// <summary>
    /// 发表机构
    /// </summary>
    public string PublishOrg
    {
        set { _publishorg = value; }
        get { return _publishorg; }
    }
    /// <summary>
    /// 首发媒体
    /// </summary>
    public string InitialMedia
    {
        set { _initialmedia = value; }
        get { return _initialmedia; }
    }
    /// <summary>
    /// 发表时间
    /// </summary>
    public string PublDate
    {
        set
        {
            if (!string.IsNullOrEmpty(value))
            {
                _publdate = Convert.ToDateTime(value);
            }
        }
        get
        {
            if (_publdate == null || _publdate == new DateTime() || _publdate == DateTime.MinValue)
            {
                return string.Empty;
            }
            else
            {
                return _publdate.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
    }
    /// <summary>
    /// 文章标题
    /// </summary>
    public string Title
    {
        set { _title = value; }
        get { return _title; }
    }
    /// <summary>
    /// 关键词
    /// </summary>
    public string KeyWords
    {
        set { _keywords = value; }
        get { return _keywords; }
    }
    /// <summary>
    /// 文章内容
    /// </summary>
    public string TextContent
    {
        set { _textcontent = value; }
        get { return _textcontent; }
    }
    /// <summary>
    /// 文章摘要
    /// </summary>
    public string TextAbstract
    {
        set { _textabstract = value; }
        get { return _textabstract; }
    }
    /// <summary>
    /// 文本大小
    /// </summary>
    public decimal TextSize
    {
        set { _textsize = value; }
        get { return _textsize; }
    }
    /// <summary>
    /// 文章点评
    /// </summary>
    public string TextComment
    {
        set { _textcomment = value; }
        get { return _textcomment; }
    }
    /// <summary>
    /// 相关行业编码
    /// </summary>
    public string IndustryCode
    {
        set { _industrycode = value; }
        get { return _industrycode; }
    }
    /// <summary>
    /// 相关行业
    /// </summary>
    public string IndustryName
    {
        set { _industryname = value; }
        get { return _industryname; }
    }
    /// <summary>
    /// 关联人物
    /// </summary>
    public string Person
    {
        set { _person = value; }
        get { return _person; }
    }
    /// <summary>
    /// 推荐标志
    /// </summary>
    public string RecommendID
    {
        set { _recommendid = value; }
        get { return _recommendid; }
    }
    /// <summary>
    /// 备注
    /// </summary>
    public string Memo
    {
        set { _memo = value; }
        get { return _memo; }
    }
    /// <summary>
    /// 录入时间
    /// </summary>
    public string RecTime
    {
        set
        {
            if (!string.IsNullOrEmpty(value))
            {
                _rectime = Convert.ToDateTime(value);
            }
        }
        get
        {
            if (_rectime == null || _rectime == new DateTime() || _rectime == DateTime.MinValue)
            {
                return string.Empty;
            }
            else
            {
                return _rectime.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
    }
    /// <summary>
    /// 修改时间
    /// </summary>
    public string ModTime
    {
        set
        {
            if (!string.IsNullOrEmpty(value))
            {
                _modtime = Convert.ToDateTime(value);
            }
        }
        get
        {
            if (_modtime == null || _modtime == new DateTime() || _modtime == DateTime.MinValue)
            {
                return string.Empty;
            }
            else
            {
                return _modtime.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }
    }
    /// <summary>
    /// 是否有效
    /// </summary>
    public string IsValid
    {
        set { _isvalid = value; }
        get { return _isvalid; }
    }
    /// <summary>
    /// 记录ID
    /// </summary>
    public string RecordID
    {
        set { _recordid = value; }
        get { return _recordid; }
    }
    #endregion Model
}